<?php
namespace Ucmaim\Model;
use Think\Model;


class AdminModel extends Model{

    public function getManager($name, $password){
        $map['admin_name'] = $name;
        $map['admin_password'] = md5($password);
        return $this->field('admin_id', 'admin_name')->where($map)->find();
    }

}